//
//  JuRunTime.swift
//  JuSwift
//
//  Created by Juvid on 2018/4/28.
//  Copyright © 2018年 Juvid. All rights reserved.
//

import UIKit

@objcMembers
open class JuRunTime: NSObject {

    open var juTitle: String!{
        didSet{
            juTitle = "newValue"
        }
        willSet{
            NSLog("%@",newValue)
        }
    }
    open func juLogType()  {

        self.setValue("第一次赋值", forKey: "juTitle")
        self.juTitle = "第二次赋值"
//        NSLog(" %@ ",juTitle)
        self.runTime()
    }
    func runTime() {
        var count:UInt32 = 0
        let  proList = class_copyPropertyList(object_getClass(self),&count)
        for  i in 0..<numericCast(count) {
            let property = property_getName((proList?[i])!);
            print("属性成员属性:%@",String.init(utf8String: property) ?? "没有找到你要的属性");
        }
        free(proList);
    }
}



